#ifndef SOCKET_EXCEPTION_H
#define SOCKET_EXCEPTION_H

#include <exception>
#include <string>
using namespace std;

namespace network {
	class socket_exception : public exception {
	public:
		socket_exception(const string &str):exception(), _msg(str) {}
		virtual ~socket_exception() throw() {}
		virtual const char* what() const throw() {return _msg.c_str();}
	private:
		string _msg;
	};
}

#endif
